﻿using System.Collections.Generic;
using SmartCity.Shared;
using Volo.Abp.Domain.Entities;

namespace ParkManagement
{
    /// <summary>
    /// 停车场类
    /// </summary>
    public class Lot : BasicAggregateRoot<int>
    {
        /// <summary>停车场名称</summary>
        public string ParkName { get; protected set; }

        /// <summary>图片地址</summary>
        public string ImgUrl { get; protected set; }

        /// <summary>总停车位</summary>
        public int AllPark { get; protected set; }

        /// <summary>空位个数</summary>
        public int Vacancy { get; protected set; }

        /// <summary>收费</summary>
        public int Rates { get; protected set; }

        /// <summary>封顶价格</summary>
        public int PriceCaps { get; protected set; }

        /// <summary>地址</summary>
        public string Address { get; protected set; }

        /// <summary>距离</summary>
        public int Distance { get; protected set; }

        /// <summary>对外开放</summary>
        public SystemWhether Open { get; protected set; }

        /// <summary>停车记录集合</summary>
        public IList<Record> Records { get; protected set; }

        private Lot() { }
    }
}